import { Button, Space, Tooltip } from "antd";

export default function AndroidPage()
{

  const skipRoute = ()=>{
    window.$wujie.props.jump('inula');
  }
  
  const skipRouteRandom = ()=>{
    window.$wujie.props.jump('inula-sub/child_repo','inula=/child_repo')
  }

  const skipActual = ()=>{
    window.$wujie?.bus.$emit('routeChange','/child_repo');
  }
  return <div>
    <p>Android</p>
    <Space>
    <Tooltip title="默认跳回保活应用">
    <Button type="primary" onClick={skipRoute}>跳转回应用路由应用</Button>
    </Tooltip>

    <Tooltip title="跳回保活应用任意路径(未实例化）">
    <Button type="primary" onClick={skipRouteRandom}>跳转回仓库</Button>
    </Tooltip>

    <Tooltip title="跳回保活应用任意路径(实例化）">
    <Button type="primary" onClick={skipActual}>跳转回仓库</Button>
    </Tooltip>
    </Space>
    </div>
}